package org.hrqing.authorization.entity;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hrqing.authorization.entity.mapper.BaseEntity;

/**
 * @auther Hrqing
 */
@Getter
@Setter
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_consent", uniqueConstraints = {@UniqueConstraint(name = "consent_unique", columnNames = {"registeredClientId", "principalName"})})
public class Consent extends BaseEntity {

    private String registeredClientId;

    private String principalName;

    @Column(columnDefinition = "varchar")
    private String authorities;

}
